package jmine.tec.script.persistent.mock;

import static jmine.tec.script.persistent.mock.MockLanguageIdentifier.MOO;
import jmine.tec.script.persistent.dao.ScriptLanguageIdentifier;
import jmine.tec.script.persistent.driver.AbstractScriptDriver;
import jmine.tec.script.persistent.driver.ScriptBean;

/**
 * Driver para leitura de scripts Moo, uso exclusivo para testes.
 * 
 * @author lundberg
 */
public class MooScriptDriver extends AbstractScriptDriver<ScriptBean> {

    /**
     * Construtor
     */
    public MooScriptDriver() {
        super(new MooHeaderExtractor());
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected ScriptLanguageIdentifier getLanguageIdentifier() {
        return MOO;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected ScriptBean createBean() {
        return new ScriptBean();
    }
}
